﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ADDDF.Infrastructure;

namespace ADDDF.Infrastructure.Test
{
    public class PartyEntity : KeyAssignableEntityBase, IAggregateRoot
    {
        private string _name;

        public PartyEntity(object key, string name) 
            : base(key)
        {
            _name = name;
        }

        public PartyEntity(int id, string name)
            : base(id)
        {
            _name = name;
        }

        public int PartyID
        {
            get { return (int)this.Key; }
        }

        public string Name
        {
            get { return _name; }
        }
    }
}
